import com.farm.chat.Chat;

import java.util.Scanner;

/**
 * ClassName: Main1
 * Package: PACKAGE_NAME
 * Description
 *
 * @Author KarUo
 * @Create 2024/3/8 17:07
 * @Version 1.0
 */
public class Main1 {
    public static void main(String[] args) throws InterruptedException {
        Chat chat = new Chat();
        boolean result = chat.getAccessToken();
        if (result){
            Scanner scanner = new Scanner(System.in);
            String question = scanner.nextLine();
            while(!"q".equals(question)){
                chat.getAnswer(question);
                chat.getRequestBody();
                question = scanner.nextLine();
            }
        }
    }
}
